#!/bin/bash

echo "========================================"
echo "n8n工作流监控系统 - 简化启动"
echo "========================================"

echo "正在安装依赖..."
pip install -r requirements.txt

echo ""
echo "正在生成监控报告..."
python monitor.py

echo ""
echo "正在启动Web服务器..."
echo "服务器启动后，请用浏览器打开 http://localhost:8001/index.html"
echo "按 Ctrl+C 停止服务器"
echo ""

python start_server.py
